package com.neuedu.security.mapper;

import com.neuedu.security.model.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {
    int addArticle(Article article);

    int updateArticle(Article article);

    int getArticle(int id);

    List<Article> getArticlesByStatus(@Param("status") int status, @Param("uid") Integer id, @Param("bool") Object o, @Param("titleKeyWords") String titleKeyWors);

    Article getArticleContent(int id);

    int recoverArticle(Article article);

    int delArticleById(int id);

    Article getArticleDetailsById(int id);

    int updateViews(int id);
}
